<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<div id="app">
  <cpn></cpn>
  <cpn></cpn>
  <cpn></cpn>
</div>

<!--1-->
<!--<script type="text/x-template" id="cpn">-->
<!--  <div>-->
<!--    <h2>hahahhhahahahahaha</h2>-->
<!--    <p>hehehehehehehe</p>-->
<!--  </div>-->
<!--</script>-->
<!--2.template标签-->
<template id="cpn">
  <div>
    <h2>{{title}}</h2>
    <p>我是内容，哈哈哈</p>
  </div>
</template>


  <script src="../../../project_practice/lunbotu/vue.js"></script>
  <script>
    Vue.component('cpn',{
      template:'#cpn',
      data(){
        return {
          title:'aaaaaffffff'
        }
      }
    })

    const app = new Vue({
      el:'#app',
      data:{
        message:"你好啊！！"
      },

    })
  </script>
</body>
</html>